package com.sise.studentInfoSystem.config;

import com.sise.studentInfoSystem.template.OssTemplate;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author zzp
 * @Desc
 * @Date 2020/7/6
 */
@Configuration
public class UploadConfig {

    @ConfigurationProperties(prefix="oss")
    @Bean
    public OssTemplate ossTemplate(){
        return new OssTemplate();
    }
}

